package com.itheima.C13_regexp;

public class Test2 {
    public static void main(String[] args) {
        String str ="b";
        if (str.matches("[a-z]")){
            System.out.println("小写字母");
        }else if (str.matches("[A-Z]")){
            System.out.println("大写字母");
        }else if (str.matches("[0-9]")){
            System.out.println("数字");
            }else if (str.matches("[\\u4e00-\\u9fa5]")){
            System.out.println("汉字");
        }else {
            System.out.println("其他字符");
        }

    }
}
